package com.wx.javacode.super_;

/**
 * ClassName:B
 * Package :com.wx.javacode.super_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/17 - 17:11
 */
public class B extends A {
    public int n1 = 888;

    public B() {
    }

    public void cal() {
//        super.cal();
        System.out.println("B类的cal()方法");
    }
    public void sum(){
//        this.cal();
//        cal();
//        super.cal();
        System.out.println(this.n1);
        System.out.println(n1);
    }
}
